<?php

error_reporting (E_ALL);

include('kcaptcha.php');

if(isset($_REQUEST[session_name()])){
	session_start();
}

$captcha = new KCAPTCHA();

if ($_REQUEST[session_name()] == session_id())
{
    $_SESSION['captcha'] =  $captcha->getKeyString();
}
else
{
    unset($_SESSION['captcha']);
}

?>